package com.bwie.controller;

import com.bwie.TestApplication;
import com.bwie.service.MyService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 鑫仔
 * @Date: 2025/7/22 08:02
 * @Description:
 **/
@RestController
@RequestMapping("day4/index")
public class MyController {
    @Autowired
    private MyService myService;


    @PostMapping("sendNotification/{message}")
    public R sendNotification(
            @PathVariable(name = "message") String message) {
        myService.sendNotification(message);
        return R.OK();
    }
}
